import requset from "../utils/request"

// 新增首席服务员
export const addChiefAPI = (data: any) => {
  return requset('chief/add', 'POST', data)
}
// 查询首席服务员列表
export const getChiefListAPI = (data: any) => {
  return requset('chief/list', 'GET', data)
}
// 编辑首席服务员
export const updateChiefAPI = (data: any) => {
  return requset('chief/update', 'POST', data)
}
// 删除首席服务员
export const deleteChiefAPI = (data: any) => {
  return requset(`chief/delete/${data.id}`, 'GET', data)
}
// 新增服务清单
export const addChiefServerAPI = (data: any) => {
  return requset('chief/server/add', 'POST', data)
}
// 查询服务清单列表
export const getChiefServerListAPI = (data: any) => {
  return requset('chief/server/getPage', 'GET', data)
}
// 查询所有首席服务员
export const getAllChiefListAPI = (data: any) => {
  return requset('chief/allList', 'GET', data)
}
// 编辑服务清单
export const updateChiefServerAPI = (data: any) => {
  return requset('chief/server/update', 'POST', data)
}
// 修改服务清单发布状态
export const updateChiefServerStatusAPI = (data: any) => {
  return requset('chief/server/updateStatus', 'POST', data)
}
// 删除服务清单
export const deleteChiefServerAPI = (data: any) => {
  return requset(`chief/server/delete/${data.id}`, 'GET', data)
}
// 新增工作动态
export const addChiefWorkAPI = (data: any) => {
  return requset('chief/work/add', 'POST', data)
}
// 查询工作动态列表
export const getChiefWorkListAPI = (data: any) => {
  return requset('chief/work/getPage', 'GET', data)
}
// 编辑工作动态
export const updateChiefWorkAPI = (data: any) => {
  return requset('chief/work/update', 'POST', data)
}
// 修改工作动态发布状态
export const updateChiefWorkStatusAPI = (data: any) => {
  return requset('chief/work/updateStatus', 'POST', data)
}
// 删除工作动态
export const deleteChiefWorkAPI = (data: any) => {
  return requset(`chief/work/delete/${data.id}`, 'GET', data)
}